---
title: "🎯 Threshold"
sidebarTitle: "Threshold"
---

### The threshold condition compare between two values, and returns positive (True) if applied.

```yaml
- type: threshold
  name: REQUIRED. Must be unique among the list.
  value: REQUIRED. Left side of the comparison.
  compare_to: REQUIRED. Right side of the comparison.
  compare_type: OPTIONAL ("lt" or "gt". default is "gt")
```

### Example

```yaml
condition:
  - type: threshold
    name: threshold-condition
    value: "{{ steps.db-no-space.results }}"
    compare_to: 10
```

- If `db-no-space` step returns 11 => `value` > 10 => the conditions returns _True_
- If `db-no-space` step returns 9.6 => `value` < 10 => the conditions returns _False_
